import { Pipe, PipeTransform } from '@angular/core';


@Pipe({
  name:'integer'
})


export class IntegerPipe implements PipeTransform{

	transform(val:any){
		let num = val || 0;
		let result = Math.floor(Number(num));

		return result;
	}

}